﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace PropertyManagementSystemAPI.Models {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "houseinfo", DisableSyncStructure = true)]
	public partial class Houseinfo {

		/// <summary>
		/// 主键、自增
		/// </summary>
		[JsonProperty, Column(Name = "hid", DbType = "int", IsPrimary = true, IsIdentity = true)]
		public int Hid { get; set; }

		/// <summary>
		/// 房产名称
		/// </summary>
		[JsonProperty, Column(Name = "hname", StringLength = 50)]
		public string Hname { get; set; }

		/// <summary>
		/// 房产编号
		/// </summary>
		[JsonProperty, Column(Name = "hnumber", StringLength = 50)]
		public string Hnumber { get; set; }

		/// <summary>
		/// 房主名称
		/// </summary>
		[JsonProperty, Column(Name = "homeowner", StringLength = 50)]
		public string Homeowner { get; set; }

		/// <summary>
		/// 房子备注
		/// </summary>
		[JsonProperty, Column(Name = "hremark")]
		public string Hremark { get; set; }

		/// <summary>
		/// 房产规格
		/// </summary>
		[JsonProperty, Column(Name = "hSpecifications", StringLength = 50)]
		public string HSpecifications { get; set; }

		/// <summary>
		/// 房子状态(0-闲置1-租出)
		/// </summary>
		[JsonProperty, Column(Name = "hstate", DbType = "int")]
		public int? Hstate { get; set; }

		/// <summary>
		/// 联系方式
		/// </summary>
		[JsonProperty, Column(Name = "htelephone", DbType = "char(11)")]
		public string Htelephone { get; set; }

		/// <summary>
		/// 是否删除
		/// </summary>
		[JsonProperty, Column(Name = "isDelete")]
		public bool? IsDelete { get; set; }

	}

}
